React: how to execute two functions at the same time when one is dependent on the other

join shbcf.ru